package com.sand.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sand.dto.supplier.PurchaseAdd;
import com.sand.dto.supplier.PurchaseAll;
import com.sand.dto.supplier.SelectePurchase;
import com.sand.entity.sell.Purchase;

import java.util.List;

public interface PurchaseService extends IService<Purchase> {


    /**
     * 发起采购
     */
    Integer add(PurchaseAdd purchaseAdd);

    /**
     * 条件查询采购单
     */
    List<Purchase> get(SelectePurchase selectePurchase);

    /**
     * 查看采购详细
     */
    PurchaseAll all(Integer purchaseid);

    /**
     * 完成采购
     */
    Integer ok(Integer purchaseid);
}
